package com.zz.ecommerce.common.bean.qdc.xml.waybill;


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>Java class for anonymous complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="WAYBILL_HEAD">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="WAYBILL_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRAF_MODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="DECL_PORT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="IE_PORT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TRAF_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="VOYAGE_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="BILL_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PACK_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="LOGI_ENTE_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="LOGI_ENTE_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="TOTAL_FREIGHT" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="CURR_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="GROSS_WEIGHT" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="PACK_NUM" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                   &lt;element name="CONSIGNEE_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNEE_ADDR" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNEE_TEL" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNEE_COUN" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNER_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNER_ADDR" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="CONSIGNER_COUN" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="NOTE" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="GOODS_LIST" maxOccurs="unbounded">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="G_NO" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                   &lt;element name="CODE_TS" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_DESC" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_MODEL" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="G_NUM" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="G_UNIT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="CURR_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="FREIGHT" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   &lt;element name="F_CURR_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="ORDER_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_PLAT_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="NOTE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="ORDER_LIST" maxOccurs="unbounded">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="ORDER_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="EB_PLAT_ID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */

/**
 * <一句话功能简述>
 * <功能详细描述>
 *
 * @author rocky
 * @date 2016/3/20,15:45
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "waybillHead",
    "goodsList",
    "orderList"
})
public class GMDataSet {

    @XmlElement(name = "WAYBILL_HEAD", required = true)
    protected WaybillHead waybillHead;
    @XmlElement(name = "GOODS_LIST", required = true)
    protected List<GoodsList> goodsList;
    @XmlElement(name = "ORDER_LIST", required = true)
    protected List<OrderList> orderList;

    /**
     * Gets the value of the waybillhead property.
     *
     * @return possible object is
     * {@link WaybillHead }
     */
    public WaybillHead getWAYBILLHEAD() {
        return waybillHead;
    }

    /**
     * Sets the value of the waybillhead property.
     *
     * @param value allowed object is
     *              {@link WaybillHead }
     */
    public void setWAYBILLHEAD(WaybillHead value) {
        this.waybillHead = value;
    }

    /**
     * Gets the value of the goodslist property.
     * <p/>
     * <p/>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the goodslist property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getGOODSLIST().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
     * {@link GoodsList }
     */
    public List<GoodsList> getGOODSLIST() {
        if (goodsList == null) {
            goodsList = new ArrayList<GoodsList>();
        }
        return this.goodsList;
    }

    /**
     * Gets the value of the orderlist property.
     * <p/>
     * <p/>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the orderlist property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getORDERLIST().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
     * {@link OrderList }
     */
    public List<OrderList> getORDERLIST() {
        if (orderList == null) {
            orderList = new ArrayList<OrderList>();
        }
        return this.orderList;
    }

    @Override
    public String toString() {
        return "GMDataSet{" +
               "waybillHead=" + waybillHead +
               ", goodsList=" + goodsList +
               ", orderList=" + orderList +
               '}';
    }
}
